<?php

namespace App\Http\Controllers\Home;

use Arcanedev\LogViewer\Utilities\Filesystem;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Log;

class IndexController extends Controller
{
    //
    public function index()
    {
//        配置参数
//        $pattern       =array(
//        'prefix'    => Filesystem::PATTERN_PREFIX,    // 'laravel-'
//        'date'      => Filesystem::PATTERN_DATE,      // '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
//        'extension' => Filesystem::PATTERN_EXTENSION, // '.log'
//    );
//        $re=env('APP_LOG', 'single');

        $re=Log::info('info',array('context'=>'test additional info'));
die;
        echo '<pre>';
print_r($re);die;


//        var_dump($re);die;
//        echo storage_path('logs');die;
        die;
        Log::info('info');
    }
}
